package com.example.applicationmonitoring.commont;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

/**
 * @author jie
 * @date 2019/3/27 0027 -12:32
 */
@Component
public class SangHealth implements HealthIndicator {

    @Override
    public Health health() {
        return Health.status("FATAL").withDetail("msg","网络断开。。。").build();
    }

}
